x11: Don't share cached GLX visuals with GTK3
authorBenjamin Otte <otte@redhat.com>
Thu, 3 Jun 2021 17:20:51 +0000 (19:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:05 +0000 (16:06 +0200)
commit8bfe82f686a2f259900a033e54dd06c8a14cd1d9
treee3c4de98abe8043782a2c1fba4353b63a072cd75
parent7d32ec51e7c3cda1771ef85855b70dca4a50c52a
x11: Don't share cached GLX visuals with GTK3

We don't want to bind ourselves to GTK3 - both because we don't want to
accidentally cause bugs in a different codebase and because we want to
deviate from it.

While doing so, also store visuals as visuals and not as integers.
And only store one Visual because GTK4 only uses one visual.

And then remove the code that is leftover for dealing with the
compatibility Visual for GTK3.

PS: I'm kinda proud of my STRINGIFY_WITHOUT_BRACKETS hack.
gdk/x11/gdkglcontext-glx.c
gdk/x11/gdkscreen-x11.h
gdk/x11/gdkvisual-x11.c